package com.ruoyi.cm.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 工序报验资料(工序报验的子表)业务对象 cm_bs_process_inspection_info
 *
 * @author zxs
 * @date 2024-10-22
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class CmBsProcessInspectionInfoBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 资料名称
     */
    @NotBlank(message = "资料名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 工序报验id
     */
    @NotNull(message = "工序报验id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long processInspectionId;

    /**
     * 文件类型(验收文件、视频、图片、检测表)
     */
    @NotBlank(message = "文件类型(验收文件、视频、图片、检测表)不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileType;

    /**
     * 文件编号
     */
    @NotBlank(message = "文件编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileNo;

    /**
     * 文件名称
     */
    @NotBlank(message = "文件名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileName;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
